<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>

<sf:form method="POST" modelAttribute="registerDTO">
    <p>
        <label>Username</label>
        <sf:input path="username" size="30"/>
        <span class="incorrect"><sf:errors path="username"/></span>

        <label>Password</label>
        <sf:password path="password" size="30"/>
        <span class="incorrect"><sf:errors path="password"/></span>

        <label>E-mail</label>
        <sf:input path="email" size="30"/>
        <span class="incorrect"><sf:errors path="email"/></span>

        <label>First name</label>
        <sf:input path="firstName" size="30"/>

        <label>Last name</label>
        <sf:input path="lastName" size="30"/>

        <br/><br/><br/>

        <input class="button" type="submit" value="Register"/>
    </p>
</sf:form>